﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Models
{
    /// <summary>
    /// log记录类
    /// </summary>
    public class LogInfo
    {
        public string UserName { get; set; }
        /// <summary>
        /// 契约名称
        /// </summary>
        public string ContractName { get; set; }

        /// <summary>
        /// 操作名称
        /// </summary>
        public string OperationName { get; set; }

        /// <summary>
        /// 请求者IP
        /// </summary>
        public string RequestIP { get; set; }

        /// <summary>
        /// 输入（序列化成json字符串）
        /// </summary>
        public string Request { get; set; }

        /// <summary>
        /// 输出（序列化成json字符串）
        /// </summary>
        public string Response { get; set; }

        /// <summary>
        /// 耗时(ms)
        /// </summary>
        public double Duration { get; set; }

        /// <summary>
        /// 执行开始时间
        /// </summary>
        public DateTime BeginTime { get; set; }

        /// <summary>
        /// 执行结束时间
        /// </summary>
        public DateTime EndTime { get; set; }
    }
}
